<?php

class Boleto {

    private $price;
    private $bank;
    private $bankCode;
    private $agency;
    private $transferorCode;
    private $maturity;
    private $processingDate;
    private $transferor;
    private $paymentLocal;
    private $instructions;
    private $wallet;
    private $ourNumber;
    private $barcode;
    private $digitableLine;
    private $Customer;

    public function __construct($Customer) {
        $this->Customer = $Customer;
    }

    public function getPrice() {
        return $this->price;
    }

    public function setPrice($price) {
        $this->price = $price;
    }

    public function getBank() {
        return $this->bank;
    }

    public function setBank($bank) {
        $this->bank = $bank;
    }

    public function getMaturity() {
        return $this->maturity;
    }

    public function setMaturity($maturity) {
        $this->maturity = $maturity;
    }

    public function getCustomer() {
        return $this->Customer;
    }

    public function getBankCode() {
        return $this->bankCode;
    }

    public function setBankCode($bankCode) {
        $this->bankCode = $bankCode;
    }

    public function getAgency() {
        return $this->agency;
    }

    public function setAgency($agency) {
        $this->agency = $agency;
    }

    public function getTransferorCode() {
        return $this->transferorCode;
    }

    public function setTransferorCode($transferorCode) {
        $this->transferorCode = $transferorCode;
    }

    public function getOurNumber() {
        return $this->ourNumber;
    }

    public function setOurNumber($ourNumber) {
        $this->ourNumber = $ourNumber;
    }

    public function getProcessingDate() {
        return $this->processingDate;
    }

    public function setProcessingDate($processingDate) {
        $this->processingDate = $processingDate;
    }

    public function getInstructions() {
        return $this->instructions;
    }

    public function setInstructions($instructions) {
        $this->instructions = $instructions;
    }

    public function getTransferor() {
        return $this->transferor;
    }

    public function setTransferor($transferor) {
        $this->transferor = $transferor;
    }

    public function getPaymentLocal() {
        return $this->paymentLocal;
    }

    public function setPaymentLocal($paymentLocal) {
        $this->paymentLocal = $paymentLocal;
    }

    public function getBarcode() {
        return $this->barcode;
    }

    public function setBarcode($barcode) {
        $this->barcode = $barcode;
    }

    public function getWallet() {
        return $this->wallet;
    }

    public function setWallet($wallet) {
        $this->wallet = $wallet;
    }

    public function getDigitableLine() {
        return $this->digitableLine;
    }

    public function setDigitableLine($digitableLine) {
        $this->digitableLine = $digitableLine;
    }

    public function generateDigitableLine( $digitRange ) {
        $this->digitableLine = $digitRange . ' ' .rand(1000, 9999) . rand(0, 9999) . rand(0, 99);
    }


}
?>